package com.bby.disk.manager.virtual;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 文件
 */
@Data
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class VirtualFile extends VirtualObject{
    long size;
    String md5;
    public VirtualFile(String owner){
        this.owner=owner;
        file = true;
    }

    public VirtualFile() {
        createTime=new Date();
        lastModified=createTime;
        file = true;
    }
}
